<%@page pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%String baseUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/"; %>
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.messager.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/bootstrap.min.js"></script>
<jsp:include page="../admin_head.jsp">
	<jsp:param value="用户信息" name="title" />
</jsp:include>
</head>
<body>
	<div class="container-fluid" >
		<div class="row">
			<div class="col-md-2"></div>
			<div class="col-md-8">
				<div class="panel panel-success" align="center">
				<div class="panel-heading">
				<h1 >课堂教学质量评价系统</h1><br/>当前用户:${user.nickName }&nbsp;&nbsp;&nbsp;
						当前用户角色：${user.userRole }
				&nbsp;&nbsp;&nbsp;&nbsp;<a href="userlist.action?userId=${user.id }"><button class="btn btn-sm btn-success">首页</button></a>
						<a href="${pageContext.request.contextPath }/user/user.action"> <button class="btn btn-sm btn-danger" > <B> 退出登录 </B> </button> </a></div>
				</div>
				
				<!-- 功能按钮start -->
				<jsp:include page="../user/admin_nav.jsp">
					<jsp:param value="用户界面" name="title" />
				</jsp:include>
				<div class="panel panel-success">
				<div class="panel panel-primary" style="margin-left: 300px;width:900px;margin-top:15px">
					<div class="panel-heading"> <h3 class="panel-title">课程信息</h3> </div>
					<div class="panel-body" >
						<form method="post" action="addClass.action">
							<input type="hidden" name="userId" value="${user.id }">
							<div style="width: 400px; margin-left: 230px">
								<div class="input-group">
									<span class="input-group-addon">课程名称</span> 
									<input type="text" name="className" class="form-control" placeholder="请输入课程名称">
								</div>
							</div>
							<div style="width: 400px; margin-left: 230px">
								<div class="input-group">
									<span class="input-group-addon">课程简介</span> 
									<input type="text" name="class_introduce" class="form-control" placeholder="请输入课程简介">
								</div>
							</div>
							<div style="width: 400px; margin-left: 230px">
								<div class="input-group">
									<span class="input-group-addon">总课程数</span> 
									<input type="number" name="class_sum" class="form-control" placeholder="请输入总课程数">
								</div>
							</div>
							<button class="btn btn-primary" style="width: 400px; margin-top: 30px; margin-left: 230px" type="submit">提交</button>
						</form>
						<button class="btn btn-success" onClick="location.href='userlist.action?userId=${user.id}'" style="width: 400px; margin-top: 20px; margin-left: 230px">返回</button>

					</div>
					</div>
				</div>
			</div>
			<div class="col-md-2"></div>
		</div>
	</div>
</body>
</html>